
class ObjAlarmVehicle {
    int carBindType;
    int driverBindType;
    String driverDepartName;
    int driverId;
    String driverName;
    String driverSn;
    int iconId;
    String waybillNumber;

    ObjAlarmVehicle({this.carBindType, this.driverBindType, this.driverDepartName, this.driverId, this.driverName, this.driverSn, this.iconId, this.waybillNumber});

    factory ObjAlarmVehicle.fromJson(Map<String, dynamic> json) {
        return ObjAlarmVehicle(
            carBindType: json['carBindType'], 
            driverBindType: json['driverBindType'], 
            driverDepartName: json['driverDepartName'] ?? "",
            driverId: json['driverId'], 
            driverName: json['driverName'] ?? "",
            driverSn: json['driverSn'], 
            iconId: json['iconId'], 
            waybillNumber: json['waybillNumber'] ?? "",
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['carBindType'] = this.carBindType;
        data['driverBindType'] = this.driverBindType;
        data['driverDepartName'] = this.driverDepartName;
        data['driverId'] = this.driverId;
        data['driverName'] = this.driverName;
        data['driverSn'] = this.driverSn;
        data['iconId'] = this.iconId;
        data['waybillNumber'] = this.waybillNumber;
        return data;
    }
}